<!DOCTYPE html>
<html>
<head>
    <title>维护页面</title>
    <script type="text/javascript">
        function refreshTable() {
            $("input[name=currentPage]").val(1);
            $("#search_ambHybyl_table").ajaxSubmit({
                url: '${absoluteContextPath}/amb/ambHybyl/ajaxList',
                success: function (data) {
                    var data = JSON.parse(data);
                    if (data.returnCode == 1) {
                        $("#tableContent").html(data.content.data);
                    } else {
                        $.showMessage({parentId: "showMessage", message: "表格数据加载异常！", type: "success"});
                    }
                }
            });
        }
        function popExportExcel() {
            $("#search_ambHybyl_table").attr('action', '${absoluteContextPath}/amb/ambHybyl/export');
            $("#search_ambHybyl_table").submit();
            $("#search_ambHybyl_table").attr('action', '${absoluteContextPath}/amb/ambHybyl/list');
        }

    </script>
</head>
<body>

<div class="breadcrumbs">
    <ol class="breadcrumb">
        <li><a href="${absoluteContextPath}/home"><i class="fa fa-home"></i>首页</a></li>
        <li><a href="#">阿米巴</a></li>
        <li class="active">个人会员保有量</li>
    </ol>
</div>

<div class="main">
    <!-- row -->
    <div class="row">
        <div class="col-md-12">
            <section class="tile">
                <!-- tile body -->
                <div class="tile-body">
                    <div id="showMessage"><#include "../../message.ftl" /></div>
                    <div class="form-horizontal">
                        <form id="search_ambHybyl_table" action="${absoluteContextPath}/amb/ambHybyl/list"
                              method="post">
                        <#--<input type="hidden" name="pageSize" value="${ambHybylsTable.page.pageSize}"/>-->
                            <input type="hidden" name="currentPage" value="${ambHybylsTable.page.currentPage}"/>


                            <div class="row">
                                <div class="form-group col-md-4">
                                    <label class="col-sm-4 control-label" for="exampleInputEmail2">年</label>

                                    <div class="col-sm-8">
                                        <input class="form-control" name="nian" value="${ambHybylParams.nian!''}"
                                               placeholder="" type="text">
                                    </div>
                                </div>
                                <div class="form-group col-md-4">
                                    <label class="col-sm-4 control-label" for="exampleInputEmail2">分管姓名</label>

                                    <div class="col-sm-8">
                                        <input class="form-control" name="fgxm" value="${ambHybylParams.fgxm!''}"
                                               placeholder="" type="text">
                                    </div>
                                </div>
                                <div class="form-group col-md-4">
                                    <label class="col-sm-4 control-label" for="exampleInputEmail2">显示条数:</label>

                                    <div class="col-sm-8">
                                        <input class="form-control" name="pageSize"
                                               value="${ambHybylsTable.page.pageSize}" placeholder="" type="text"/>
                                    </div>
                                </div>
                            </div>


                            <div class="row">
                                <div class="form-group col-md-4">
                                    <label class="col-sm-4"></label>

                                    <div class="col-sm-8">
                                        <button type="button" class="btn btn-primary" onclick="refreshTable()">查询
                                        </button>
                                        <button type="reset" class="btn btn-default">重置</button>
                                    </div>

                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </section>
            <section class="tile">
                <div class="tile-header">
                    <h1>
                        <button type="button" class="btn btn-green" onclick="popExportExcel();"><i
                                class="fa fa-plus"></i><span class="margin-left-5">导出</span></button>
                    </h1>
                </div>
                <div class="tile-body nopadding">
                    <div class="table-responsive" id="tableContent">
                    <#include "table.ftl"/>
                    </div>
                </div>
            </section>
        </div>
    </div>
    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    </div>
</div>
</body>
</html>
